// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;namespace Stride.Core.Settings;

/// <summary>
/// Arguments of the <see cref="SettingsProfile.FileModified"/> event.
/// </summary>
public class FileModifiedEventArgs : EventArgs
{
    /// <summary>
    /// Initializes a new instance of the <see cref="FileModifiedEventArgs"/>
    /// </summary>
    /// <param name="profile">The profile corresponding to the file that has been modified.</param>
    public FileModifiedEventArgs(SettingsProfile profile)
    {
        Profile = profile;
    }

    /// <summary>
    /// Gets the profile corresponding to the file that has been modified..
    /// </summary>
    public SettingsProfile Profile { get; }

    /// <summary>
    /// Gets or sets whether the modified file should be reloaded. False by default.
    /// </summary>
    public bool ReloadFile { get; set; }
}
